/**
 *  triangle.h
 *  AwkwardPaint - Engine
 *
 *  Date: 14/08/2013
 *
 *  Language: C++
 *
 *  @author Carl McCaffrey
 *
 */
#ifndef TRIANGLE_H
#define TRIANGLE_H

#include "math/vector2.h"

class Triangle
{
    public:
        Vector2 pos;
        float base_size;
        float scale;
        float orientation;

        Vector2 vertices[3];

        float trig[2];
        float prev_orientation;

        void Set(float x, float y, float size, float scalef, float angle_rad);
        void CalculateVertices(void);
};

#endif // TRIANGLE_H
